import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.awt.Toolkit;

import org.havi.ui.HBackgroundDevice;
import org.havi.ui.HBackgroundImage;
import org.havi.ui.HScene;
import org.havi.ui.HSceneFactory;
import org.havi.ui.HScreen;
import org.havi.ui.HStaticIcon;
import org.havi.ui.HStaticText;
import org.havi.ui.HStillImageBackgroundConfiguration;


public class inicio extends HScene  {
	
	 HScene scene;
	 Image imagen;
	 HStaticIcon imag;
	 int x=0,y=0, ancho=720, alto=577;
	// HBackgroundDevice d;
	private HStaticText jugar, salir;
	
	public inicio(){
		scene =null;
		scene = HSceneFactory.getInstance().getFullScreenScene(
				HScreen.getDefaultHScreen().getDefaultHGraphicsDevice());
		
		imagen = Toolkit.getDefaultToolkit().getImage("mapa3.jpg");
		imag= new HStaticIcon(imagen, x, y, ancho, alto);
		
		jugar = new HStaticText("JUGAR");
		jugar.setFont(new Font("Verdana", Font.BOLD, 30));
		jugar.setBounds(100,99, 300, 100);
		jugar.setForeground(Color.GREEN);
		salir= new HStaticText("SALIR");
		salir.setFont(new Font("Verdana", Font.BOLD, 30));
		salir.setForeground(Color.YELLOW);
		salir.setBounds(350, 200, 300, 100);
		
		scene.add(imag);
		
		
		
		scene.add(jugar);
		scene.add(salir);
		
		
		
		
		
		
	}

	public HScene getScene() {
		return scene;
	}

	public void setScene(HScene scene) {
		this.scene = scene;
	}
	
	public void destruirScene() {
		
		HSceneFactory.getInstance().dispose(scene);
	}
	
	 

}
